import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ajax from './utils/service.axios'


import '@/assets/style/resrt.css'
import '@/assets/style/system.ui.css'

Vue.config.productionTip = false
Vue.prototype.ajax = ajax;

// 修改路由title
router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
      document.title = to.meta.title
    }
    next()
})


new Vue({
    router,
    store,
    render:h => h(App)   
}).$mount('#app')